clang-tidy modernize-use-auto, but (#483)
authortsteven4 <13596209+tsteven4@users.noreply.github.com>
Wed, 29 Jan 2020 15:32:32 +0000 (08:32 -0700)
committerGitHub <noreply@github.com>
Wed, 29 Jan 2020 15:32:32 +0000 (08:32 -0700)
commit542fa122424368d19c5c081c0e15d9e57ddf9e44
tree9281744c0addf8b4bed103fdd4ebe07f2d0aec00
parentb2dbbec763ab0b4fd951db0eaa75f018249f788b
clang-tidy modernize-use-auto, but (#483)

only on:
Message: use auto when initializing with new to avoid duplicating the type name

not on:
Message: use auto when initializing with a cast to avoid duplicating the type name
Message: use auto when initializing with a template cast to avoid duplicating the

The later two left me wondering what type I had, while it is obvious with the first
one.  Some of this is due to our macro defines for gbffetuint*, gbfputuint*.

This required a edit of the fixes file produced by clang-tidy:
export PAT='with a template' A=3 B=3
vim -Nes "+g/${PAT}/.-${B},.+${A}d" '+w !tee' '+q!' ct8fixes.yaml > tmp1.yaml
export PAT='with a cast' A=2 B=3
vim -Nes "+g/${PAT}/.-${B},.+${A}d" '+w !tee' '+q!' tmp1.yaml > myfixes.yaml
rm ct8fixes.yaml
rm tmp1.yaml
82 files changed:
alan.cc
an1.cc
arcdist.cc
bcr.cc
bend.cc
bushnell.cc
bushnell_trl.cc
compegps.cc
delgpl.cc
destinator.cc
dg-100.cc
dmtlog.cc
easygps.cc
enigma.cc
exif.cc
f90g_track.cc
g7towin.cc
garmin.cc
garmin_fs.cc
garmin_gpi.cc
garmin_txt.cc
garmin_xt.cc
gdb.cc
ggv_log.cc
globalsat_sport.cc
gnav_trl.cc
googledir.cc
gopal.cc
gpsutil.cc
gtrnctr.cc
holux.cc
humminbird.cc
igc.cc
igo8.cc
interpolate.cc
itracku.cc
jogmap.cc
jtr.cc
kml.cc
lowranceusr.cc
maggeo.cc
magproto.cc
mapasia.cc
mapbar_track.cc
mapsend.cc
mapsource.cc
mmo.cc
mtk_logger.cc
mynav.cc
navicache.cc
naviguide.cc
navilink.cc
navitel.cc
netstumbler.cc
nmn4.cc
osm.cc
ozi.cc
pocketfms_bc.cc
pocketfms_wp.cc
psitrex.cc
raymarine.cc
sbn.cc
skyforce.cc
skytraq.cc
tef_xml.cc
teletype.cc
tiger.cc
tmpro.cc
tpg.cc
tpo.cc
transform.cc
unicsv.cc
v900.cc
vidaone.cc
vitosmt.cc
vitovtt.cc
vpl.cc
wbt-200.cc
wfff_xml.cc
wintec_tes.cc
xcsv.cc
xmltag.cc